package com.sky.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
@ConfigurationProperties(prefix = "sky.baidu") //默认绑定到实例字段,不能绑定到静态字段
@Data
public class BaiduMapProperties {
    // 非静态字段（Spring 会自动注入）
    private String geocodingApi;
    private String ak;
    private String ridingApi;
    private String geoconvApi;

}